package com.lzh.seatrend.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  @JsonProperty 相当于提供一个额外的名称，两个可以在反序列化时通用
 */

/**
 * @date: 2020/8/17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Test {

    @JsonProperty(value = "fake_name111", required = true)
    private String fakeName;

    @JsonProperty(value = "fake_old111", required = true)
    private Integer fakeOld;

    @Override
    public String toString() {
        return "Test{" +
                "fakeName='" + fakeName + '\'' +
                ", fakeOld=" + fakeOld +
                '}';
    }
}